<?php
/**
 * @desc   Created by PhpStorm.
 * @author laowng
 * @since  2018/10/23 15:20
 */

namespace app\admin\model;


use think\Model;

class AdminAuthModel extends Model
{
    protected $table = 'admin_auth';// 表名字
    protected $pk = 'auth_id'; // 主键

    /**
     * @param $level
     * @throws \think\Exception\DbException
     */
    public static function getLevelAll($where)
    {
        $data = (new AdminAuthModel)->where($where)->order('sort', 'desc')->select();
        return $data;
    }

}